package com.loong.loong.hik.api.entity.door;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import javax.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 门禁设备对象特征属性
 * @author jinyiang
 * @date 2023/3/22 10:03
 */
@Data
@TableName("hik_door_guard_device")
public class HikDoorGuardDevice {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "通用名")
	@NotBlank(message = "通用名不能为空")
	private String cn;

	@ApiModelProperty(value = "资源编码")
	@NotBlank(message = "资源编码不能为空")
	private String indexCode;

	@ApiModelProperty(value = "外部编码（联网编码）")
	@NotBlank(message = "外部编码不能为空")
	private String externalIndexCode;

	@ApiModelProperty(value = "厂商")
	private String manufacturer;

	@ApiModelProperty(value = "设备型号")
	private String devModel;

	@ApiModelProperty(value = "设备安装地址")
	private String addr;

	@ApiModelProperty(value = "警区")
	private String block;

	@ApiModelProperty(value = "父级资源编号（区域联网编码）")
	@NotBlank(message = "父级资源编号不能为空")
	private String parentIndexCode;

	@ApiModelProperty(value = "ip")
	private String ip;

	@ApiModelProperty(value = "端口")
	private String port;

	@ApiModelProperty(value = "设备口令")
	private String password;

	@ApiModelProperty(value = "保密属性")
	private Integer secrecy;

	@ApiModelProperty(value = "纬度")
	private String latitude;

	@ApiModelProperty(value = "经度")
	private String longitude;

	@ApiModelProperty(value = "海拔(单位米)")
	private String altitude;

	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;

	@ApiModelProperty(value = "更新时间")
	private LocalDateTime updateTime;

	@ApiModelProperty(value = "扩展信息")
	private String extendData;

	@ApiModelProperty(value = "数据状态")
	private Integer status;

}
